package com.me;

import java.util.Scanner;

public class test {
	public static void main(String args[]) {
		int num1 = 0, num2 = 0, score = 100;
		Scanner scan = new Scanner(System.in);
		int i = scan.nextInt();
		String str = scan.next();
		while (i < 5) {
			if (str.equals("T"))
				num1++;
			else if (str.equals("F")) {
				score = score - 10;
				num2++;
			}
			i++;
		}
		System.out.println("num1 =" + num1 + ",num2 =" + num2 + ",score =" + score);
	}
}
